-- Class: BoundingBox

BoundingBox = Class:extend
{

	upperLeft = { x = 0, y = 0 },
	width = 0,
	height = 0,

	new = function (self, obj)
		obj = obj or {}
		self:extend(obj)
		if obj.onNew then obj:onNew() end
		return obj
	end,

--~ 	within = function (self, x, y)
--~ 		if x >= self.upperLeft.x then
--~ 			return true
--~ 		else
--~ 			return false
--~ 		end
--~ 	end

	-- intersects = function (self, other)
	--	if

	standingPosition = function (self, ypos)
		return ypos - self.height
	end

}
